'use strict';

var promise = new Promise(function (resolve, reject) {
    console.log('Promise');
    resolve();
});
promise.then(function () {
    console.log('resolve');
});
console.log(11);

// result:
// Promise
// 11
// resolve